package com.company;

public class Test12利润算奖金 {
    public static void main(String[] args) {

    }

    /**
     * 计算奖金
     * @param money
     * @return
     */
    public  static int cal(int money){
        if(money<=10){
            return (int) (money * 0.1);
        }else {
            return (int) (money * 0.2);
        }
    }
}
